using System;

namespace Webshop20.Application.Operations.Messages
{
    public class RemoveProductFromCartRequest : MessageBase
    {

        private readonly Guid? cartInterimKey;
        private readonly int? customerId;
        private readonly int productId;

        public RemoveProductFromCartRequest(Guid? cartInterimKey, int? customerId, int productId)
        {
            this.cartInterimKey = cartInterimKey;
            this.productId = productId;
            this.customerId = customerId;
        }

        public int ProductId
        {
            get { return productId; }
        }

        public int? VisitorId
        {
            get { return customerId; }
        }

        public Guid? AnonymousVisitorId
        {
            get { return cartInterimKey; }
        }
    }
}